﻿using System;
using System.Net;
using System.Collections.Generic;
using Galaktika.BI.Silverlight.Controls.PivotGrid.ClientServer;

namespace Galaktika.BI.Silverlight.Controls.PivotGrid.ClientServer
{
    public class UpdateCubeArgs
    {
        public UpdateCubeArgs()
        {
        }

        public string ConnectionString = string.Empty;
        public string CubeName = string.Empty;
        //public string Script = string.Empty;

        public List<UpdateEntry> Entries = new List<UpdateEntry>();
    }

    /// <summary>
    /// Класс, задающий правило обновления для ячейки
    /// </summary>
    public class UpdateEntry
    {
        public UpdateEntry()
        {
        }

        public UpdateEntry(string newValue)
        {
            this.NewValue = newValue;
        }

        /// <summary>
        /// Координата ячейки
        /// </summary>
        public readonly List<ShortMemberInfo> Tuple = new List<ShortMemberInfo>();

        /// <summary>
        /// Новое значение ячейки
        /// </summary>
        public string NewValue = string.Empty;
    }
}
